package com.tich.program.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 门票实体类
 * */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("program_ticket")
public class ProgramTicket implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    /**
     * 节目id
     */
    private Long programId;

    /**
     * 门票种类id
     */
    private Long  categoryId;

    /**
     * 票价
     */
    private Integer price;

    /**
     * 总数量
     */
    private Integer totalCount;

    /**
     * 剩余数量
     */
    private Integer remainingCount;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

}
